import request from '@/utils/request'

export function login(username, password) {
  return request({
    url: '/api/user/login',
    method: 'get',
    headers: {
      getToken: true
    },
    params: { username, password }
  })
}

export function logout(id) {
  return request({
    url: '/api/user/logout?userId=' + id,
    method: 'get'
  })
}
